package com.discovery.getway.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.discovery.getway.servie.IFeignService;
import com.discovery.getway.support.ApiResponse;

@RestController
public class FeignController {

	@Autowired
	IFeignService feignService;

	@RequestMapping("/index")
	@ResponseBody
	public ApiResponse index() {
		System.out.println("---------------Zookeeper服务调用成功!---------------");
		return new ApiResponse(200, feignService.getInstanceId());
	}
}
